package com.qf.service.impl;

import com.qf.UserService;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;

/**
 * @author YDW
 * projectName:project2202_4
 * time:2022/7/10 15:42
 * description:
 */
@Slf4j
@DubboService
public class UserServiceImpl implements UserService {
    @Override
    public boolean login(String username, String password) {

        log.info("[提供者模块] 登录功能，username={},password={}",username,password);
        if("zhangsan".equals(username)&&"123456".equals(password)){
            return true;
        }

        return false;
    }
}
